package com.library.books.domain.dto;

import lombok.Data;

import java.util.List;

/**
 * @ClassName: Tree
 * @Description: 树形结构实体类
 * @Author: hb
 * @Date: 2024/10/15
 */
@Data
public class Tree {

    /** id */
    private Long id;

    /** 父id */
    private Long parentId;

    /** 名称 */
    private String name;

    /** 子集合 */
    private List<Tree> children;

}
